package com.huaxia.day4a;

import com.huaxia.day4a.Person;

public class Student extends Person {

    public Student() {

    }


    public Student(String name, int age, String address) {
        this.name = name;
        this.age = age;
        this.address = address;

    }

    @Override
    protected void speak() {
        System.out.println("Student speak");
    }


    public void speak(String msg) {
        System.out.println("say:" + msg);
    }

    public String speak(String msg, String hi) {
        return hi + msg;
    }


}
